package com.globagames.strategicgames.event
{
	import com.adobe.cairngorm.control.CairngormEvent;
	import com.globagames.strategicgames.model.Player;
	
	import flash.events.Event;
	
	
	[Bindable]
	public class ConnexionEvent extends CairngormEvent
	{
		public static var EVENT_CONNEXION : String = "connexion";
		
		public var action :String;
		public var player :Player;
		public var isLogged:Boolean = false;
		public var isConnected:Boolean = false;
		public var isFilledWithSessions:Boolean = false;
		public var hasError:Boolean = false;
		public var errorMessage :String;

		
		
		/**
		 * Constructor.
		 */
		public function ConnexionEvent()
		{
			super( EVENT_CONNEXION );
		}
     	
     	/**
     	 * Override the inherited clone() method, but don't return any state.
     	 */
		override public function clone() : Event
		{
			return new ConnexionEvent();
		}	
	}
	
}